package com.example.core.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.core.dao.DingdingUserDao;
import com.example.core.entity.DingdingUserPO;
import com.example.core.service.DingdingUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service("dingdingUserServiceImpl")
public class DingdingUserServiceImpl extends ServiceImpl<DingdingUserDao, DingdingUserPO> implements DingdingUserService {

    public void save(List<DingdingUserPO> dingdingUserList){
        QueryWrapper qw = new QueryWrapper<>();
        this.remove(qw);
        this.saveBatch(dingdingUserList);
    }

}
